import { createRouter, createWebHistory, createWebHashHistory } from 'vue-router'
import HomeView from '../views/homepage/index.vue'
const router = createRouter({
  // history: createWebHistory(import.meta.env.BASE_URL),
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView,
      children: [
        {
          path: 'secondoverview',
          name: 'secondoverview',
          component: () => import('../views/secondoverview/index.vue')
        },
        {
          path: 'activitycenter',
          name: 'activitycenter',
          component: () => import('../views/activitycenter/index.vue')
        },
        {
          path: 'echelonpartybuilding',
          name: 'echelonpartybuilding',
          component: () => import('../views/echelonpartybuilding/index.vue')
        }
      ],
      redirect: { name: 'secondoverview' }
    }
  ]
})
export default router
